clear
clc

names = {'Adw', 'Drp', 'Rtk', 'Susp', 'Trj'};

for i=1:length(names)
    load('CTU_Encrypted_Malware_Traffic_sel');
    name = ['CTU_Normal_vs_', names{i}, '.mat'];
    class_meaning = {'Normal'; names{i}};
    ind = [find(Y==0); find(Y==i)];
    X{1} = X{1}(:,ind); X{2} = X{2}(:,ind); X{3} = X{3}(:,ind);
    Y = Y(ind);
    data_name = ['CTU_Normal_vs_', names{i}];
    save(name, 'data_name', 'class_meaning', 'view_meaning', 'X', 'Y', '-v7.3')
end

